package com.btshop.goods.service;
import com.btshop.goods.pojo.StockBack;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
/**
 * @ClassName: StockBackService
 * @description: StockBack业务层接口
 * @author: 李东
 * @Date: 2020-7-20
 */
public interface StockBackService {

    /***
     * StockBack多条件分页查询
     * @param stockBack
     * @param page
     * @param size
     * @return
     */
    PageInfo<StockBack> findPage(StockBack stockBack, int page, int size);

    /***
     * StockBack分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<StockBack> findPage(int page, int size);

    /***
     * StockBack多条件搜索方法
     * @param stockBack
     * @return
     */
    List<StockBack> findList(StockBack stockBack);

    /***
     * 删除StockBack
     * @param orderId,skuId
     */
    void delete(Long orderId,Long skuId);

    /***
     * 修改StockBack数据
     * @param stockBack
     */
    void update(StockBack stockBack);

    /***
     * 新增StockBack
     * @param stockBack
     */
    void add(StockBack stockBack);

    /**
     * 根据ID查询StockBack
     * @param orderId,skuId
     * @return
     */
     StockBack findById(Long orderId,Long skuId);

    /***
     * 查询所有StockBack
     * @return
     */
    List<StockBack> findAll();
}
